00001
00002 #ifndef __PEONSTDAFX_H_
00003 #define __PEONSTDAFX_H_
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "PeonDLLHeader.h"
00027
00028
00029 #if defined( __WIN32__ ) || defined( _WIN32 )
00030
00031 #if defined(DEBUG) | defined(_DEBUG)
00032 #define CRTDBG_MAP_ALLOC
00033 #include <stdlib.h>
00034 #include <crtdbg.h>
00035 #endif
00036
00037 #endif
00038
00039
00040
00041
00042 #include <SDL.h>
00043 #include <SDL_opengl.h>
00044 #include "GL/glext.h"
00045
00046
00047
00048
00049
00050 extern "C"
00051 {
00052 #include "lua/lua.h"
00053 #include "lua/lualib.h"
00054 #include "lua/lauxlib.h"
00055 }
00056
00057
00058
00059
00060 #include "tokamak/tokamak.h"
00061
00062
00063
00064
00065
00066
00067 #include <SDL_mixer.h>
00068
00069
00070 #include "al/al.h"
00071 #include "al/alc.h"
00072 #include "al/alut.h"
00073
00074
00075 #include "ogg/ogg.h"
00076 #include "vorbis/codec.h"
00077 #include "vorbis/vorbisenc.h"
00078 #include "vorbis/vorbisfile.h"
00079
00080
00081
00082
00083
00084 #include "CEGUI/CEGUI.h"
00085 #include "CEGUI/renderers/OpenGLGUIRenderer/openglrenderer.h"
00086
00087
00088
00089
00090
00091
00092
00093
00094 # pragma warning (disable : 4786)
00095
00096
00097
00098 # pragma warning (disable : 4503)
00099
00100
00101 # pragma warning (disable : 4244)
00102
00103
00104 # pragma warning (disable : 4305)
00105
00106
00107
00108 # pragma warning (disable : 4251)
00109
00110
00111
00112
00113 # pragma warning (disable : 4275)
00114
00115
00116
00117
00118 # pragma warning( disable : 4290 )
00119
00120
00121
00122
00123 # pragma warning( disable: 4661)
00124
00125
00126
00127
00128
00129
00130 # pragma warning( disable: 4996)
00131
00132 #include <cassert>
00133 #include <cstdio>
00134 #include <cstdlib>
00135 #include <ctime>
00136 #include <cstring>
00137 #include <cstdarg>
00138 #include <cmath>
00139
00140
00141 #include <vector>
00142 #include <map>
00143 #include <string>
00144 #include <set>
00145 #include <list>
00146 #include <deque>
00147 #include <queue>
00148
00149
00150
00151 #include <algorithm>
00152 #include <functional>
00153 #include <limits>
00154
00155
00156 #include <fstream>
00157 #include <iostream>
00158 #include <iomanip>
00159 #include <sstream>
00160
00161
00162 #if defined( __WIN32__ ) || defined( _WIN32 )
00163
00164 #undef min
00165 #undef max
00166
00167 #endif
00168
00169
00170
00176 #define PEON_DELETE(p) { if(p) { delete (p); (p)=NULL; } }
00177 #define PEON_DELETE_ARRAY(p) { if(p) { delete[] (p); (p)=NULL; } }
00178
00179
00185 #define PEON_PI 3.141592654f
00186 #define PEON_DEGTORAD(degree) ((degree) * (PEON_PI / 180.0f))
00187 #define PEON_RADTODEG(radian) ((radian) * (180.0f / PEON_PI))
00188
00189
00190 namespace peon
00191 {
00192
00193
00199 #if defined( PEON_UNICODE )
00200 typedef std::wstring _StringBase;
00201 typedef const wchar_t* _StringPtrBase;
00202 #else
00203 typedef std::string _StringBase;
00204 typedef const char* _StringPtrBase;
00205 #endif
00206
00207 typedef _StringBase String;
00208 typedef _StringPtrBase StringPtr;
00209
00210
00211 class Angle;
00212 class AudioEngine;
00213 class AxisAlignedBox;
00214 class Billboard;
00215 class Degree;
00216 class EngineCore;
00217 class FileLogger;
00218 class IActor;
00219 class IApplication;
00220 class IniConfigReader;
00221 class ISceneObject;
00222 class IUnknown;
00223 class Matrix33;
00224 class Matrix44;
00225 class MathUnit;
00226 class Plane;
00227 class PlaneBoundedVolume;
00228 class Radian;
00229 class Ray;
00230 class SceneCamera;
00231 class SceneFont;
00232 class SceneLight;
00233 class SceneOBJ;
00234 class SceneMD3;
00235 class SceneRenderer;
00236 class SceneTexture;
00237 class Skybox;
00238 class Sphere;
00239 class ParticleEmitter;
00240 class Quaternion;
00241 class Shockwave;
00242 class Timer;
00243 class Vector2;
00244 class Vector3;
00245 class Vector4;
00246
00247
00248 }
00249
00250 #endif
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261